(function(d) {
	console.log('wap.js');

	function e() {
		var a = c.getBoundingClientRect().width;
		if(a > 750) return
		750 < a && (a = 750);
		a = a / 750 * 100;
		c.style.fontSize = a + "px";
		var b = parseFloat(window.getComputedStyle(document.documentElement)["font-size"]);
		b !== a && 0 < b && 1 < Math.abs(b - a) && (c.style.fontSize = a * a / b + "px")
	}
	var c = d.document.documentElement,
		f;
	d.addEventListener("resize", function() {
		clearTimeout(f);
		f = setTimeout(e, 100)
	}, !1);
	e()
	function disableZoom() {
		document.addEventListener('touchstart', function (event) {
			if (event.touches.length > 1) {
				event.preventDefault();
			}
		}, { passive: false });
		let lastTouchEnd = 0;
		document.addEventListener('touchend', function (event) {
			const now = (new Date()).getTime();
			if (now - lastTouchEnd <= 300) {
				event.preventDefault();
			}
			lastTouchEnd = now;
		}, { passive: false });
	}
	disableZoom();
})(window);
